package com.bob.shirodemo.base.spring;

import com.bob.shirodemo.base.web.MyWebMvcConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class SpringConfiguration {
    /**
     * web配置实例化
     * @return
     */
    @Bean
    public WebMvcConfigurer corsConfigurer() {
        return new MyWebMvcConfigurer();
    }
}
